package com.xrx.webtemplate.web.api.impl;

import com.xrx.webtemplate.web.api.UserApi;
import com.xrx.webtemplate.web.service.biz.UserApiBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by xierongxian on 2017/4/23.
 */
@Service("userApiImpl")
public class UserApiImpl implements UserApi{

    @Autowired
    private UserApiBiz userApiBiz;

    public List<Map<String, String>> searchUserRole(String userid) {
        return userApiBiz.searchUserRole(userid);
    }

    public List<Map<String, String>> searchMenu(String userid) {
        return userApiBiz.searchMenu(userid);
    }
}
